package com.xxxx.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.seckill.pojo.SeckillOrder;
import com.xxxx.seckill.pojo.User;

/**
 * <p>
 * 秒杀订单表 服务类
 * </p>
 *
 * @author lulongfei
 * @since 2022-04-19
 */
public interface ISeckillOrderService extends IService<SeckillOrder> {
    /**
     * 获取秒杀结果  成功,   -1：秒杀失败, 0:排队中
     *
     * @param tUser 用户
     * @param goodsId 商品主键
     * @return long
     */
    Long getResult(User tUser, Long goodsId);
}
